//
//  StarViewController.m
//  MemberProject
//
//  Created by macbook on 15/4/17.
//  Copyright (c) 2015年 MAC OS X. All rights reserved.
//

#import "StarViewController.h"

@interface StarViewController ()

@end

@implementation StarViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title=@"星级说明";
    UIView *view1=[[UIView alloc]initWithFrame:CGRectMake(0, 64, SCREEN_WIDTH, (SCREEN_HEIGHT-64-49)/3)];
    [self.view addSubview:view1];
    view1.backgroundColor=[UIColor clearColor];
    
    for(int i=0;i<6;i++){
        for(int j=0;j<5;j++){
            UIImageView *imageView=[[UIImageView alloc]initWithFrame:CGRectMake(10+j*15,(view1.height/6-15)/2+view1.height/6*i, 15, 15)];
            [view1 addSubview:imageView];
            if (j<i) {
                imageView.image=[UIImage imageNamed:@"pentagram2"];
            }else{
                imageView.image=[UIImage imageNamed:@"pentagram1"];
            }
        }
    
    }

    UIView *view2=[[UIView alloc]initWithFrame:CGRectMake(5, view1.y+view1.height, SCREEN_WIDTH-10, (SCREEN_HEIGHT-64-49)/3*2-5)];
    view2.backgroundColor=[UIColor colorWithRed:231/255.0 green:231/255.0 blue:231/255.0 alpha:1];
    [self.view addSubview:view2];
    view2.layer.cornerRadius=5.0f;
                                                          
}


@end
